package main

import "fmt"

func main() {
	var n int
	var s string

	for {
		if i, _ := fmt.Scan(&n, &s); i == 0 {
			return
		}
	}
}
